import request from '@/utils/request'

// 查询事迹分值列表
export function listDeed(query) {
  return request({
    url: '/system/deed/list',
    method: 'get',
    params: query
  })
}

// 查询事迹分值详细
export function getDeed(id) {
  return request({
    url: '/system/deed/' + id,
    method: 'get'
  })
}

// 新增事迹分值
export function addDeed(data) {
  return request({
    url: '/system/deed',
    method: 'post',
    data: data
  })
}

// 修改事迹分值
export function updateDeed(data) {
  return request({
    url: '/system/deed',
    method: 'put',
    data: data
  })
}

// 删除事迹分值
export function delDeed(id) {
  return request({
    url: '/system/deed/' + id,
    method: 'delete'
  })
}


export function getDeedStatistics(data) {
  return request({
    url: '/sin/statistics/getDeedStatistics',
    method: 'post',
    data: data
  })
}

export function getChildDeed(data) {
  return request({
    url: '/system/deed/getChildDeed',
    method: 'get' ,
    params: data
  })
}